<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户界面</title>
  <link rel="stylesheet" type="text/css" href="../static/all/css/AllUserPage.css" media="all">
  <link rel="stylesheet" type="text/css" href="../static/all/css/bootstrap.min.css" media="all" />
  <link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="../static/all/css/btn.css" media="all" />
  <style>
    .innerContent{
      background-color: white;
      border: 0px solid #000000;

      -moz-border-radius: 15px;

      -webkit-border-radius: 15px;

      border-radius:20px;
    }

    form>div{
      margin-left: 40px;
      margin-right: 40px;
    }

    .menu>li{
      list-style-type: none;
    }

    .part{
      margin-top: 20px;
    }
  </style>
</head>

<body>
  <input type="checkbox" id="check" />
  <label for="check">
    <svg viewBox="0 0 30 30" width="30" height="30">
      <path id="one" d="M4 10h22M4" stroke="#fff" stroke-width="2" stroke-linecap="round"></path>
      <path id="two" d="M4 20h22M4" stroke="#fff" stroke-width="2" stroke-linecap="round"></path>
    </svg> 菜 单
  </label>
  <aside th:fragment="nav2">
    <div class="top">
      <h2>目 录</h2>
      <ul class="menu">
        <li><a th:href="@{/logout}"><button class="custom-btn btn-12"><span>Click!</span><span>注销</span></button></a></li>
        <li><a th:href="@{/admin/adminInfo(username=${username})}"><button class="custom-btn btn-12"><span>Click!</span><span>信息管理</span></button></a></li>
        <li><a th:href="@{/admin/registerMessage(username=${username})}"><button class="custom-btn btn-12"><span>Click!</span><span>登记信息</span></button></a></li>
        <li><a th:href="@{/admin/noRegisterMessage(username=${username})}"><button class="custom-btn btn-12"><span>Click!</span><span>未登记信息</span></button></a></li>
        <li><a th:href="@{/admin/usermanage(username=${username})}"><button class="custom-btn btn-12"><span>Click!</span><span>用户管理</span></button></a></li>
      </ul>
    </div>
    <div class="bottom">
    </div>
  </aside>
  <article>
    <div class="wrapper">
      <!--<div class="content"></div>-->
        <div class="container" style="margin-top: 100px">
          <div class="row">
          <div class="col-md-3"></div>

          <div class="col-md-6 innerContent">
            <form th:action="@{/user/updateuser}">
              <div style="margin-top: 50px" class="form-group">
                <div class="col-sm-6 part">
                  <input style="display: none" name="username" th:value="${username}">
                  <label for="userName">用 户 名</label>
                  <input type="text" class="form-control" name="userName" id="userName" th:field="${user.userName}" readonly>
                </div>
                <div class="col-sm-6 part">
                  <label for="password">密 码</label>
                  <input type="text" class="form-control" name="password" id="password" th:field="${user.password}" required>
                </div>
              </div>

              <div style="margin-top: 50px" class="form-group">
                <div class="col-sm-6 part">
                  <label for="college">学 院</label>
                  <input type="text" class="form-control" name="college" id="college" th:field="${user.college}" >
                </div>
                <div class="col-sm-6 part">
                  <label for="realName">姓 名</label>
                  <input type="text" class="form-control" name="realName" id="realName" th:field="${user.realName}" required >
                </div>
              </div>

              <div style="margin-top: 50px" class="form-group">
                <div class="col-sm-6 part" style="margin-bottom: 50px">
                  <label for="role">角 色</label>
                  <input type="text" class="form-control" name="role" id="role" th:value="${role}" readonly>
                </div>
              </div>

              <div class="col-sm-12" style="text-align: center;margin: 0">
                <button style="margin: 25px" type="submit" class="custom-btn btn-6" onclick="alert('修改完成!')"><span>修改</span></button>
              </div>



            </form>
          </div>
          <div class="col-md-3"></div>

          </div>
        </div>



      <div class="footer">
        <p></p>
      </div>
    </div>
  </article>
</body>

<script src="../static/all/js/bootstrap.min.js"></script>
<script src="../static/all/js/jquery-1.11.1.min.js"></script>

</html>